package com.pactera.madp.cp.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.crm.WorkAssetsInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zkd
 * @date 2022/5/5 10:53
 */
public interface WorkAssetsInfoMapper extends BaseMapper<WorkAssetsInfoEntity> {

    List<WorkAssetsInfoEntity> list(@Param("tableName") String tableName);

    boolean removeAll(@Param("tableName") String tableName);

    boolean batchSaveOrUpdate(@Param("tableName") String tableName, @Param("entityList") List<WorkAssetsInfoEntity> entityList);

    List<WorkAssetsInfoEntity> listByCustNo(@Param("tableName") String tableName, @Param("custNo") String custNo);

    List<Map<String,Object>> listInCustNos(@Param("tableName") String tableName, @Param("custNos") List<String> custNos);

}
